//
//  MyWaterFlow.h
//  庐山通
//
//  Created by zcj on 15-11-3.
//  Copyright (c) 2015年 郑朝军. All rights reserved.
//

#import <UIKit/UIKit.h>
@class MyWaterFlow;

@protocol MyWaterFlowDelegate <NSObject>

//必须实现
-(CGFloat)waterFlow:(MyWaterFlow*)waterFlow heightForWidth:(CGFloat)width indexPath:(NSIndexPath*)indexPath;

@end


@interface MyWaterFlow : UICollectionViewLayout

//每一行的间距
@property (nonatomic,assign) CGFloat rowMargin;
//每一列的间距
@property (nonatomic,assign) CGFloat columnMargin;
//四边的距离
@property (nonatomic,assign) UIEdgeInsets sectionInset;
//最大的列数
@property (nonatomic,assign) CGFloat columsCount;


@property (nonatomic,weak) id<MyWaterFlowDelegate>delegate;
@end
